package com.team.recruitment_management_system.pojo.dto.message;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.Date;

@Schema(description = "添加聊天信息对象")
@Data
public class AddChangeMessageDto {
    @Schema(description = "职位Id")
    @NotBlank(message = "职位Id不能为空")
    private Integer jobId;

    @Schema(description = "简历Id")
    @NotBlank(message = "简历Id不能为空")
    private Integer resumeId;

    /**
     * 接收方用户名
     */
    @Schema(description = "接收方用户名")
    @NotEmpty(message = "接收方用户名不能为空")
    private String recipientUsername;

    /**
     * 发送方用户名
     */
    @Schema(description = "发送方用户名")
    @NotEmpty(message = "发送方用户名不能为空")
    private String senderUsername;


    /**
     * 接收方称呼
     */
    @Schema(description = "接收方称呼")
    @NotEmpty(message = "接收方称呼不能为空")
    private String recipientName;

    /**
     * 发送方称呼
     */
    @Schema(description = "发送方称呼")
    @NotEmpty(message = "发送方称呼不能为空")
    private String senderName;

    /**
     * 接收方头像
     */
    @Schema(description = "接收方头像")
    @NotEmpty(message = "接收方头像不能为空")
    private String recipientAvatar;

    /**
     * 发送方头像
     */
    @Schema(description = "发送方头像")
    @NotEmpty(message = "发送方头像不能为空")
    private String senderAvatar;

    /**
     * 聊天信息
     */ 
    @Schema(description = "聊天信息")
    @NotEmpty(message = "聊天信息不能为空")
    private String message;

    @Schema(description = "创建时间不用填")
    private Date createTime;

}
